package com.lank.gateway.exception;

import com.lank.boot.result.exception.SystemException;
import com.lank.gateway.enums.GatewaySystemEnum;
import lombok.Getter;

/**
 * @author Administrator
 */
@Getter
public class GatewaySystemException extends SystemException {

    private final String subCode;

    /**
     * 使用枚举传参
     *
     * @param systemEnum 异常枚举
     */
    public GatewaySystemException(GatewaySystemEnum systemEnum) {
        super(systemEnum.getCode(), systemEnum.getMessage());
        this.subCode = systemEnum.getCode();
    }


}
